package com.zhangzhan.gulimallorder.feign;

import com.zhangzhan.gulimallorder.vos.MemberAddrVo;
import com.zhangzhan.gulimallorder.vos.MemberReceiveAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/30 11:49
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @RequestMapping(value = "/gulimallmember/memberreceiveaddress/getMemberAddrList",method = RequestMethod.GET)
    public List<MemberAddrVo> getMemberAddrList(@RequestParam("memberId") Long memberId);

    @RequestMapping(value = "/gulimallmember/memberreceiveaddress/getFreight",method = RequestMethod.GET)
    public MemberReceiveAddressVo getAddressFreight(@RequestParam("addrId") Long addrId);
}
